import Vue from 'vue'
import App from './App'
import uView from "uview-ui";
import {
	myRequest
} from './util/api.js'
import {
	hRequest
} from './util/api2.js'
Vue.use(uView);
Vue.prototype.$myRequest = myRequest
Vue.prototype.$hRequest = hRequest
Vue.filter('formatDate', (date) => {
	const nDate = new Date(date)
	const year = nDate.getFullYear()
	const mouth = nDate.getMonth().toString().padStart(2, 0)
	const day = nDate.getDay().toString().padStart(2, 0)
	return year + '/' + mouth + '/' + day

}, )

Vue.config.productionTip = false

App.mpType = 'app'

const app = new Vue({
	...App
})
app.$mount()
